<template>
	<div>
		<el-dropdown @command="handleCommand">
		  <span class="el-dropdown-link">
		    功能展示<i class="el-icon-arrow-down el-icon--right"></i>
		  </span>
		  <el-dropdown-menu slot="dropdown">
		    <el-dropdown-item command="updateStroreInfo">完善门店信息</el-dropdown-item>
			 <el-dropdown-item command="showStroreInfo">展示门店信息</el-dropdown-item>
		    <el-dropdown-item command="b">狮子头</el-dropdown-item>
		    <el-dropdown-item command="c">螺蛳粉</el-dropdown-item>
		    <el-dropdown-item command="d" disabled>双皮奶</el-dropdown-item>
		    <el-dropdown-item command="e" divided>蚵仔煎</el-dropdown-item>
		  </el-dropdown-menu>
		</el-dropdown>
	</div>
</template>

<script>
	export default {
	    methods: {
	      handleCommand(command) {
	     
			if(command=="updateStroreInfo"){
				this.$router.push({
					path:'/stroreInfo'
				})
			}else if(command=="showStroreInfo"){
				this.$router.push({
					path:'/showStroreInfo'
				})
			}
			
	      }
	    }
	  }
</script>

<style>
	 .el-dropdown-link {
	    cursor: pointer;
	    color: #409EFF;
	  }
	  .el-icon-arrow-down {
	    font-size: 12px;
	  }
</style>